package com.dcbeida.bean;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by 150410 on 2017/10/18.
 */

public class StockDetail implements Serializable {

    /**
     * totalcount : 2
     * records : 2
     * list : [{"batchnumber":"","expiredate":"","drugcode":"81857470021720774948","drugcodelevelno":1,"parentdrugcode":"","drugid":1,"createtime":"2017-09-12 17:10:53","quantity":1,"status":2,"salesorderid":110945,"salesordertime":"2017-10-18 11:36:02","salespatientid":31699},{"batchnumber":"","expiredate":"","drugcode":"81857470021720834685","drugcodelevelno":1,"parentdrugcode":"","drugid":1,"createtime":"2017-05-09 17:12:54","quantity":1,"status":2,"salesorderid":60527,"salesordertime":"2017-05-09 17:48:41","salespatientid":22766}]
     * daysforsale : 0
     * stock : -8
     */

    private int totalcount;
    private int records;
    private int daysforsale;
    private int stock;
    private ArrayList<ListBean> list;

    public int getTotalcount() {
        return totalcount;
    }

    public void setTotalcount(int totalcount) {
        this.totalcount = totalcount;
    }

    public int getRecords() {
        return records;
    }

    public void setRecords(int records) {
        this.records = records;
    }

    public int getDaysforsale() {
        return daysforsale;
    }

    public void setDaysforsale(int daysforsale) {
        this.daysforsale = daysforsale;
    }

    public int getStock() {
        return stock;
    }

    public void setStock(int stock) {
        this.stock = stock;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Serializable {
        /**
         * batchnumber :
         * expiredate :
         * drugcode : 81857470021720774948
         * drugcodelevelno : 1
         * parentdrugcode :
         * drugid : 1
         * createtime : 2017-09-12 17:10:53
         * quantity : 1
         * status : 2
         * salesorderid : 110945
         * salesordertime : 2017-10-18 11:36:02
         * salespatientid : 31699
         * isalarm : 1 需要警告，0不需要
         * expiredays : 还有过期天数
         */

        private String batchnumber;
        private String drugname;
        private String expiredate;
        private String drugcode;
        private int drugcodelevelno;
        private String parentdrugcode;
        private int drugid;
        private String createtime;
        private int quantity;
        private int status;
        private int salesorderid;
        private String salesordertime;
        private String isalarm;
        private String expiredays;
        private int salespatientid;


        //额外的参数
        private boolean isFirst;
        private int count;

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public String getIsalarm() {
            return isalarm;
        }

        public String getDrugname() {
            return drugname;
        }

        public void setDrugname(String drugname) {
            this.drugname = drugname;
        }

        public void setIsalarm(String isalarm) {
            this.isalarm = isalarm;
        }

        public String getExpiredays() {
            return expiredays;
        }

        public void setExpiredays(String expiredays) {
            this.expiredays = expiredays;
        }

        public String getBatchnumber() {
            return batchnumber;
        }

        public void setBatchnumber(String batchnumber) {
            this.batchnumber = batchnumber;
        }

        public String getExpiredate() {
            return expiredate;
        }

        public void setExpiredate(String expiredate) {
            this.expiredate = expiredate;
        }

        public String getDrugcode() {
            return drugcode;
        }

        public void setDrugcode(String drugcode) {
            this.drugcode = drugcode;
        }

        public int getDrugcodelevelno() {
            return drugcodelevelno;
        }

        public void setDrugcodelevelno(int drugcodelevelno) {
            this.drugcodelevelno = drugcodelevelno;
        }

        public String getParentdrugcode() {
            return parentdrugcode;
        }

        public void setParentdrugcode(String parentdrugcode) {
            this.parentdrugcode = parentdrugcode;
        }

        public int getDrugid() {
            return drugid;
        }

        public void setDrugid(int drugid) {
            this.drugid = drugid;
        }

        public String getCreatetime() {
            return createtime;
        }

        public void setCreatetime(String createtime) {
            this.createtime = createtime;
        }

        public int getQuantity() {
            return quantity;
        }

        public void setQuantity(int quantity) {
            this.quantity = quantity;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public int getSalesorderid() {
            return salesorderid;
        }

        public void setSalesorderid(int salesorderid) {
            this.salesorderid = salesorderid;
        }

        public String getSalesordertime() {
            return salesordertime;
        }

        public void setSalesordertime(String salesordertime) {
            this.salesordertime = salesordertime;
        }

        public int getSalespatientid() {
            return salespatientid;
        }

        public void setSalespatientid(int salespatientid) {
            this.salespatientid = salespatientid;
        }

        public boolean isFirst() {
            return isFirst;
        }

        public void setFirst(boolean first) {
            isFirst = first;
        }

        @Override
        public boolean equals(Object obj) {
            return obj == null ? false : this.getDrugid() == ((ListBean) obj).getDrugid();
        }
    }
}
